package com.kuang.demo.mapper;


import com.kuang.demo.bo.zzy.LogBo.ListPageLimit2;
import com.kuang.demo.bo.zzy.Role.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    List<ValueLabel> selectAllRole();

    int selectAllRoles(@Param("username") String username);

    List<IdNaEnaAddUpDe> selectRoleByLimit(@Param("listt") ListPageLimit2 listPageLimit);

    int createRole(@Param("create1") NameDesc nameDesc);

    CreateRole selectCreateRole(String name);

    int selectRoleName(String name);

    int updateRole(@Param("update1") IdNaEnaAddUpDe idNaEnaAddUpDe);

    int deleteRole(Integer id);

    List<MaxPermission> selectAllPermission();

    List<String> selectDestinate1(int i);

    List<String> selectDestinate2(int i);

    void updatePermission(String permission, Integer roleId);

    int deletePermission(Integer roleId);
}
